package st.business.tepth.business.user.operationchoose;

import java.util.List;

import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.business.tepth.business.bean.OperationBean;
import st.shadow.library.core.base.mvp.BaseModel;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;

/**
 * Author: shadow
 * Email:  1025431817@qq.com
 * Time:   2019-03-19 09:40
 */

public interface OperationChooseContract {
    interface View extends BaseView {
        void showOperationList(List<OperationBean> list);

        void showError(int code, String msg);
    }

    interface Model extends BaseModel {
        Disposable getOperationList(String token,
                                    OnDataConvertListener<List<OperationBean>> listener);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract void getOperationList(String token);
    }
}
